﻿
using System;
using System.Data;
using System.Data.SqlClient;
namespace Model
{
	
	/// <summary>	 
	/// 国家数据库
	/// </summary>
	public class DbCountry
	{ 
		#region DbCountry
		/// <summary>
		/// 
		/// </summary>
		public DbCountry()
		{
		}
		/// <summary>	 
		/// 
		/// </summary>
		public DbCountry(Int32 cId)
		{
			this.cId = cId;
		
		}
		/// <summary>	 
		/// 
		/// </summary>		
		public DbCountry(DataRow dr)
		{
			int.TryParse(Convert.ToString(dr["cId"]),out cId);
			this.country = Convert.ToString(dr["country"]);
			this.countryISOCode = Convert.ToString(dr["countryISOCode"]);
			
		}
		#endregion
		
		
		#region CId
		private Int32 cId;
		/// <summary>	 
		/// 
		/// AutoInc
		/// PK
		/// </summary>
		public Int32 CId
		{
			get{ return cId; }
			set{ cId= value; }
		}
		#endregion
		
		#region Country
		private System.String country;
		/// <summary>	 
		/// 国家
		/// </summary>
		public System.String Country
		{
			get{ return country; }
			set{ country= value; }
		}
		#endregion
		
		#region CountryISOCode
		private System.String countryISOCode;
		/// <summary>	 
		/// 国家英文简写
		/// </summary>
		public System.String CountryISOCode
		{
			get{ return countryISOCode; }
			set{ countryISOCode= value; }
		}
		#endregion

	}
}
